From cb63a9960f248d55c6e424d82a680522288cde67 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 6 Aug 2010 15:42:49 +0100 Subject: [PATCH] xenoprofile: Disable IBS on x86_32 Extended PCI configuration space is not accessible on 32 bit systems. This patch disables IBS feature on 32 bit to avoid IBSCTL(0x1cc) accesses. Signed-off-by: Wei Wang --- xen/arch/x86/oprofile/op_model_athlon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/x86/oprofile/op_model_athlon.c b/xen/arch/x86/oprofile/op_model_athlon.c index d115849930..8d83b01e31 100644 --- a/xen/arch/x86/oprofile/op_model_athlon.c +++ b/xen/arch/x86/oprofile/op_model_athlon.c @@ -475,6 +475,9 @@ static int init_ibs_nmi(void) static u32 get_ibs_caps(void) { +#ifdef CONFIG_X86_32 + return 0; +#else unsigned int max_level; if (!boot_cpu_has(X86_FEATURE_IBS)) @@ -491,6 +494,7 @@ static u32 get_ibs_caps(void) return IBS_CAPS_AVAIL; return ibs_caps; +#endif } u32 ibs_init(void) -- 2.30.2